// 0-待审 1-通过 2-拒绝
const status = [
  { label: '待审', value: 0 },
  { label: '通过', value: 1 },
  { label: '拒绝', value: 2 },
]

export const columns = [
  { label: '', prop: 'index', width: '80px', type: 'index' },
  { label: '业主姓名', prop: 'name', width: '120px', search: true },
  { label: '联系电话', prop: 'phone', width: '150px' },
  { label: '楼栋', prop: 'building', width: '120px' },
  { label: '单元', prop: 'unit', width: '120px' },
  { label: '房号', prop: 'roomNum', width: '120px' },
  { label: '状态', prop: 'status', width: '100px', type: 'select', options: status, search: true },
  {
    label: '申请时间',
    prop: 'createTime',
    width: '200px',
    type: 'datetime',
  },
  { label: '审核说明', prop: 'reviewComment', width: '180px' },
  { label: '操作', prop: 'action', slotName: 'action', width: '110px', fixed: 'right' },
]

export const formOptions = [
  {
    label: '审核结果',
    prop: 'status',
    type: 'radio',
    options: [
      { label: '通过', value: 1 },
      { label: '不通过', value: 0 },
    ],
    rules: [{ required: true, message: '审核结果不能为空' }],
  },
  { label: '审核说明', prop: 'reviewComment', span: 3 },
]
